import {
    http4
} from "@/service/axios";

// 设备-泊位列表接口
export function getberthAssociationList(data) {
    return http4.post({
        url: "/road/device/berth/list/page",
        data,
    });
}

// 批量清除设备-泊位关联接口
export function getRemoveBerthAssociation(data) {
    return http4.post({
        url: "/road/device/berth/remove",
        data,
    });
}

// 设备关联泊位导出接口
export function getExportBerthAssociation(data) {
    return http4.post({
        url: `/road/device/berth/export`,
        data,
        responseType: "blob",
    });
}

// 设备-泊位关联接口
export function getRelationBerth(data) {
    return http4.post({
      url: "/road/device/berth/add",
      data,
    });
}
  
// 设备关联泊位导入模板接口
export function getAssociatedBerthDownload(data) {
    return http4.get({
      url: `/road/device/berth/import/template/download`,
      data,
      responseType: "blob",
    });
  }